function main( ui) {
  //var json = ui.getQueryParameters().getFirst("json");
  //if( null == json ) throw new Exception("param json is null!");
   
  //var o = new JSONObject( json );
  return createUser(  );
  
}

function createUser(  ) {
  
   var a = new UserEntity();
   
   
  a.userId="vincenzo.tandurella@gmail.com";
  a.name="";
  a.deviceId="111111";
  // JSON Object
  a.preferences = "{}";
    
   EntityManager.storeUser( a );
   
   return a; 
}